Skip to content

fix(strategy): stabilize fetch/rebase git CLI tests under race#40

Merged
Patel230 merged 1 commit into
mainfrom
fix/ci-fetch-rebase-race
Jun 20, 2026
Merged

fix(strategy): stabilize fetch/rebase git CLI tests under race#40
Patel230 merged 1 commit into
mainfrom
fix/ci-fetch-rebase-race

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

  • Serialize git CLI integration tests that call t.Chdir() to avoid cwd races under -race on CI.
  • Clone into dedicated t.TempDir() roots instead of nested subdirectories to avoid flaky git clone object copy failures.

Test plan

  • go test -race ./cli/strategy/ -run TestFetchAndRebase
  • CI green on this PR

Made with Cursor

Serialize t.Chdir-based git integration tests and clone into dedicated
temp directories to avoid CI flakes from nested temp paths and cwd races.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Patel230 Patel230 merged commit 6e3269f into main Jun 20, 2026
12 checks passed
@Patel230 Patel230 deleted the fix/ci-fetch-rebase-race branch June 20, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant